package main

import "fmt"

type Pet2 interface {
	eat2()
}

type Dog2 struct {
	name string
}

func (dog *Dog2) eat2() {
	fmt.Printf("dog: %p\n", dog)
	fmt.Println("dog eat...")
	dog.name = "黑黑"
}

func main() {
	dog := &Dog2{"花花"}
	fmt.Printf("dog: %p\n", dog)
	dog.eat2()
	fmt.Printf("dog: %v\n", dog)
}
